Skip to content

Replaced SpinBox nodes with EditorSpinSlider nodes for better Snap Config - #37998

Closed
elijahscherz wants to merge 1 commit into
godotengine:masterfrom
elijahscherz:polished-snap-config
Closed

Replaced SpinBox nodes with EditorSpinSlider nodes for better Snap Config#37998
elijahscherz wants to merge 1 commit into
godotengine:masterfrom
elijahscherz:polished-snap-config

Conversation

@elijahscherz

Copy link
Copy Markdown

Working towards Snap Config dialog box improvements requested in #13966.

The main idea is replacing the SpinBox nodes with EditorSpinSlider nodes to allow drag setting and a nicer interface.

Previous -
image

After changes -
image

However, I anticipate needing to make adjustments for this solution. This currently uses EditorSpinSlider nodes, but does not have an EditorInspector associated with it, which seems like it might be a misuse of the node. (Though it does seem to function and sets the config values.)

I will happily make changes to this, but just need a small example code snippet showing how I could more properly network the slider nodes.

@KoBeWi

KoBeWi commented Jan 13, 2022

Copy link
Copy Markdown
Member

This currently uses EditorSpinSlider nodes, but does not have an EditorInspector associated with it, which seems like it might be a misuse of the node.

Nah, EditorSpinSlider can be used anywhere in the editor. There is even an idea to expose it like a regular control, because it's useful.

Anyways, the new dialog seems bigger than necessary. I mean, you don't need such wide inputs for grid, where values are almost never going to exceed 1000. Also units outside inputs aren't a good idea. They should stay inside. Like in Node2D for example:
image

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants